<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2020/3/8
 * Time: 12:26
 */

namespace app\restful\code;


class ErrorCode
{
    const  USERNAME_CANNOT_EMPTY = 1; //用户名不能为空
    const PWD_CANNOT_EMPTY = 2;//密码不能为空
    const USERNAME_EXISTS = 3; //用户名已存在
    const USERNAME_OR_PWD_ERROR = 4;//用户名或密码错误

    const  ARTICLE_TITLE_CANNOT_EMPTY = 5; //文章标题不能为空
    const  ARTICLE_CONTENT_CANNOT_EMPTY = 6; //文章内容不能为空
    const  ARTICLE_PUBLISH_FAIL = 7; //文章发布失败
    const  ARTICLE_NULL = 8; //没有该文章
    const  NO_AUTH = 9; //没有权限
    const  ARTICLE_DELETE_ERROR = 10; //文章删除失败
    const  REQUEST_PARAMS_ERROR = 11; //请求参数错误







}